package com.gitee.huanminabc.utils_tools.security.dal.dao;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gitee.huanminabc.utils_tools.security.entity.UserEntity;
import com.gitee.huanminabc.utils_tools.security.param.UserUpdateParam;

import java.util.List;

public interface UserDaoService   extends IService<UserEntity> {


    UserEntity findByUser(String account, String password);

    UserEntity findByUser(String account);
    List<UserEntity> findByUsers(List<String> accounts);

    //查询手机号是否存在
    UserEntity findByPhone(String phone);

    //添加数据返回id
    int insertUser(UserEntity userEntity);
    //前置匹配模糊查询
    List<UserEntity> getNotLikeRightUserList(String account);

    boolean updateUser(UserUpdateParam userUpdateParam);

    List<UserEntity> findByUserName(String name);

}
